package cn.gbase.jiangsu.data.transfer.bean;

import org.nutz.dao.entity.annotation.Column;
import org.nutz.dao.entity.annotation.Id;
import org.nutz.dao.entity.annotation.Table;

import cn.gbase.jiangsu.data.transfer.validation.annotation.Validations;

/**
* 
*/
@Table("deliver_onfig")
public class DeliverConfig extends BaseDto {

	@Id
	@Column
	private int id;

	/**
	 * 名称.
	 */
	@Column("name")
	@Validations(required = true, strLen = { 1, 100 }, errorMsg = "名称应为1-100个字符。")
	private String name;

	/**
	 * 配送价格.
	 */
	@Column("price")
	@Validations(required = true, limit = { 1, 10000 }, errorMsg = "配送价格应为1-10000之间的数字.")
	private float price;

	/**
	 * 排序数字.
	 */
	@Column("sort_number")
	@Validations(required = true, limit = { 1, 10000 }, errorMsg = "排序数字应为1-10000之间的数字.")
	private int sortNumber;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public float getPrice() {
		return price;
	}

	public void setPrice(float price) {
		this.price = price;
	}

	public int getSortNumber() {
		return sortNumber;
	}

	public void setSortNumber(int sortNumber) {
		this.sortNumber = sortNumber;
	}
}